<template>
<div v-if="isshow" ref="myComponent">
    <h1>
        vueComponent组件创建
    </h1>
    <div class="hefei">

    </div>
    </div>  
</template>
<script>
export default {
name:"extend",
data() {
    return {
        isshow: true
    }
},
}
</script>
<style>
.hefei{
width: 100px;
height: 100px;
background-color:#42bfac ;
}
</style>